//
//  CateSeeAllTableViewCell.m
//  DanTang
//
//  Created by honeyrr on 2017/10/11.
//  Copyright © 2017年 honeyrr. All rights reserved.
//

#import "CateSeeAllTableViewCell.h"

@interface CateSeeAllTableViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *bgImgView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *subTitleLabel;

@end

@implementation CateSeeAllTableViewCell

-(void)setCollection:(NSDictionary *)collection
{
    _collection = collection;
    self.titleLabel.text = collection[@"title"];
    self.subTitleLabel.text = collection[@"subtitle"];
    [self.bgImgView setImageWithURL:collection[@"cover_image_url"] placeholderImage:[UIImage imageNamed:@"PlaceHolderImage_small_31x26_"]];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.separatorInset = UIEdgeInsetsMake(10, 10, 10, 10);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
